package com.webservice;

import org.junit.Test;

import com.webservice.DisabledServiceStub.DisabledQueryRequest;
import com.webservice.DisabledServiceStub.DisabledRequest;
import com.webservice.DisabledServiceStub.GetIndividualQuery;
import com.webservice.DisabledServiceStub.GetIndividualQueryResponse;
import com.webservice.DisabledServiceStub.NetworkCredential;
import com.webservice.DisabledServiceStub.SingleQuery;

public class CardCliect {
  
    @Test
    public void getCardDetail() throws Exception{
        DisabledServiceStub stubs = new DisabledServiceStub();
        GetIndividualQuery query=new GetIndividualQuery();  
        DisabledQueryRequest req=new DisabledQueryRequest();
        NetworkCredential net=new NetworkCredential();
        net.setPassword("zjcl");
        net.setUserName("123$%^");
        req.setNetworkCredential(net);
        req.setIdCard("412826199306253518");
        query.setIn0(req);

   
        GetIndividualQueryResponse b=stubs.getIndividualQuery(query);
        System.out.println(b.getOut().getState());
        System.out.println(b.getOut().getCitizen().getCitizenInfo()[0].getName());
        
        
    }

}
